<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改省份信息')"/>
    <th:block th:include="include :: select2-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-provinceinfo-edit"
          th:object="${provinceInfo}">
        <input name="provinceId" th:field="*{provinceId}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label"><span
                    style="color: red;">*</span>省份编码：</label>
            <div class="col-sm-8">
                <input th:field="*{provinceId}" class="form-control" type="text"
                       required disabled="disabled">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"><span
                    style="color: red;">*</span>省份名称：</label>
            <div class="col-sm-8">
                <input name="provinceName" th:field="*{provinceName}" class="form-control"
                       type="text" required maxlength="10">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: select2-js"/>
<script type="text/javascript">
    var prefix = ctx + "bussiness/provinceinfo";
    $("#form-provinceinfo-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-provinceinfo-edit')
                .serialize());
        }
    }

    $("input[name='updateTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
</body>
</html>